package com.his.his_system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.his.his_system.domain.DzmHisInventory;
import com.his.his_system.domain.DzmHisMedicines;
import com.his.his_system.service.DzmHisInventoryService;
import com.his.his_system.mapper.DzmHisInventoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 冯心愿
* @description 针对表【dzm_his_inventory(库存表)】的数据库操作Service实现
* @createDate 2023-07-06 14:24:49
*/
@Service
public class DzmHisInventoryServiceImpl extends ServiceImpl<DzmHisInventoryMapper, DzmHisInventory>
    implements DzmHisInventoryService{
@Autowired
private DzmHisInventoryMapper dzmHisInventoryMapper;
    @Override
    public int update(DzmHisInventory dzmHisInventory) {
        return dzmHisInventoryMapper.update(dzmHisInventory);
    }


    @Override
    public int changePrice(DzmHisInventory dzmHisInventory) {
        return dzmHisInventoryMapper.changePrice(dzmHisInventory);
    }

    @Override
    public List<DzmHisInventory> selectDzmHisInventoryList(DzmHisMedicines dzmHisMedicines, Integer hospitalId) {
        return dzmHisInventoryMapper.selectDzmHisInventoryList(dzmHisMedicines,hospitalId);
    }
}




